const http = require('http')
const PORT = 9001

const server = http.createServer(function (req, res) {
  res.setHeader('Content-Type', 'text/plain; charset=utf-8')
  res.end('来自服务端的信息')
})

server.listen(PORT, function () {
  console.log(`服务正在运行 http://localhost:${PORT}`)
})
